package oo_day05_homework;

import oo_day05.Season;

public class SeasonTest1 {
    public static void main(String[] args) {
        Season1[]season1s =Season1.values();
        for (int i = 0; i < season1s.length; i++) {
            System.out.println(season1s[i]);
            System.out.println(season1s[i].getSeasonName());
            System.out.println(season1s[i].getSeasonDesc());
        }

        Season1 s = Season1.WINTER;
        switch (s){
            case SPRING:
                System.out.println("天气"+s.getSeasonDesc()+",我们去春游吧!");
                break;
            case SUMMER:
                System.out.println("天气"+s.getSeasonDesc()+",我们去游泳吧!");
                break;
            case AUTUMN:
                System.out.println("天气"+s.getSeasonDesc()+",我们去秋游吧!");
                break;
            case WINTER:
                System.out.println("天气"+s.getSeasonDesc()+",我们去暖暖吧!");
                break;
        }
    }
}
